package cn.tedu.micro.demo.device.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class HelloController {
   @Value("${server.port}")
   private String port;
   @Value("${spring.application.name}")
   private String name;
   @GetMapping("/device/hello")
    public String hello() {
       log.info("当前项目应用名称:{}",name);
       return "hello world"+ port;
   }
}
